home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 33
/
Aminet 33 - October 1999.iso
/
Aminet
/
dev
/
asm
/
Tandem.lha
/
Tandem
/
Teaching
/
18.asm
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Assembly Source File
|
1999-08-21
|
318 b
|
23 lines
* 18.asm conditional assembly version 0.00 1.9.97
* do add or sub
arith: macro
move.l d0,-(a7)
move.l #\1,d0
ifc '\2','+'
add.l #\3,d0
endc
ifc '\2','-'
sub.l #\3,d0
endc
move.l d0,\4
move.l (a7)+,d0
endm
* do some math
arith 10,+,10,d1
arith 10,-,10,d2
arith 20,+,10,d3
arith 20,-,10,d4
rts